package com.example.canteen.domain;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.convert.DataSizeUnit;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

//@ApiModel(value = "供应商实体", description = "供应商实体")
//public class Suppliers {
//    @ApiModelProperty("id")
//    private int SupplierID;
//    @ApiModelProperty("供应商名称")
//    @NotBlank(message = "供应商名称不为空")
//    private String SupplierName;
//    @ApiModelProperty("联系人")
//    private String ContactPerson;
//    @ApiModelProperty("电话")
//    @Size(min=2,max=20,message="电话在2-20之间")
//    private String Phone;
//    @ApiModelProperty("邮箱")
//    private String Email;
////    text文件
//    @ApiModelProperty("地址")
//    private String Address;
//
//    public int getSupplierID() {
//        return SupplierID;
//    }
//
//    public void setSupplierID(int supplierID) {
//        SupplierID = supplierID;
//    }
//
//    public String getSupplierName() {
//        return SupplierName;
//    }
//
//    public void setSupplierName(String supplierName) {
//        SupplierName = supplierName;
//    }
//
//    public String getContactPerson() {
//        return ContactPerson;
//    }
//
//    public void setContactPerson(String contactPerson) {
//        ContactPerson = contactPerson;
//    }
//
//    public String getPhone() {
//        return Phone;
//    }
//
//    public void setPhone(String phone) {
//        Phone = phone;
//    }
//
//    public String getEmail() {
//        return Email;
//    }
//
//    public void setEmail(String email) {
//        Email = email;
//    }
//
//    public String getAddress() {
//        return Address;
//    }
//
//    public void setAddress(String address) {
//        Address = address;
//    }
//
//    public Double getRating() {
//        return Rating;
//    }
//
//    public void setRating(Double rating) {
//        Rating = rating;
//    }
//
//    public String getNotes() {
//        return Notes;
//    }
//
//    public void setNotes(String notes) {
//        Notes = notes;
//    }
//
//    @ApiModelProperty("评级")
//    private Double Rating;
//    @ApiModelProperty("备注")
//    private String Notes;
//
//    public Suppliers(int supplierID, String supplierName, String contactPerson, String phone, String email, String address, Double rating, String notes) {
//        SupplierID = supplierID;
//        SupplierName = supplierName;
//        ContactPerson = contactPerson;
//        Phone = phone;
//        Email = email;
//        Address = address;
//        Rating = rating;
//        Notes = notes;
//    }
//
//    @Override
//    public String toString() {
//        return SupplierName + '\'' +
//                ", " + ContactPerson + '\'' +
//                ", " + Phone + '\'' +'\n' +
//                ", " + Email + '\'' +'\n' +
//                ", " + Address + '\'' +'\n' +'\n' +
//                ", " + Rating + '\'' +'\n' +'\n' +
//                ", " + Notes + '\'' +'\n' +'\n';
//    }
@Data
public class Suppliers {
    private int supplierID;
    private String supplierName;
    private String contactPerson;
    private String phone;

    public int getSupplierID() {
        return supplierID;
    }

    public void setSupplierID(int supplierID) {
        this.supplierID = supplierID;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getRating() {
        return rating;
    }

    public void setRating(Double rating) {
        this.rating = rating;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    private String email;
    private String address;
    private Double rating;
    private String notes;

    public void SupplierID(String s) {
        
    }

    public void SupplierName(String 测试用户1) {
    }
}
